package com.example.erhuo;

import java.io.Serializable;

public class PersonInformation implements Serializable {
    private boolean isLogin = false;
    private String userName = "";
    private String studentId = "";
    private String cookie = "";
    private String email = "";

    public PersonInformation(String userName, String cookie) {
        this.userName = userName;
        this.cookie = cookie;
        this.isLogin = true;
    }

    public PersonInformation(String userName, String nickname, String email) {
        this.studentId = userName;
        this.userName = nickname;
        this.isLogin = true;
        this.email = email;
    }

    public PersonInformation() {
        super();
    }

    public boolean isLogin() {
        return isLogin;
    }

    public String getCookie() {
        return cookie;
    }

    public String getStudentId() {
        return studentId;
    }

    public String getUserName() {
        return userName;
    }
}
